<template>
    <!-- 菜单容器  => 一级菜单-->
    <el-menu :router="true" :default-active="$route.path">
        <!--  一级菜单项 -->
        <el-menu-item index="/home"  route="/home">首页</el-menu-item>
        <!-- <el-submenu index="1">
            <template v-slot:title><i class="el-icon-message"></i>系统首页</template>
            <el-menu-item index="1-1"  route="/home">首页</el-menu-item>
        </el-submenu> -->
        <!-- 二级菜单 -->
        <el-submenu index="2">
            <template v-slot:title><i class="el-icon-message"></i>商品管理</template>
            <!-- 二级菜单项 -->
            <el-menu-item index="/goods/list"  route="/goods/list">商品列表</el-menu-item>
            <el-menu-item index="/goods/search"  route="/goods/search">商品搜索</el-menu-item>
        </el-submenu>
        <el-submenu index="3">
            <template v-slot:title><i class="el-icon-message"></i>轮播管理</template>
            <!-- 二级菜单项 -->
            <el-menu-item index="/banner/show" route="/banner/show">轮播展示</el-menu-item>
            <el-menu-item index="/banner/list" route="/banner/list">轮播列表</el-menu-item>
            <el-menu-item index="/banner/add" route="/banner/add">轮播新增</el-menu-item>
        </el-submenu>
    </el-menu>
</template>

<script>

    export default {
        name:"AsideView",
    }
</script>